<template>
	<view class="">
		<text class="compare_header">答题练习</text>
		<view class="compare">
			<view class="compare_son">
				<u-image src="https://cdn.uviewui.com/uview/album/1.jpg" :lazy-load="true" height=100rpx width=100rpx
					shape="circle"></u-image>
				<h5>每日答题</h5>
				<text>全新挑战</text>
			</view>
			<view class="compare_son">
				<u-image src="https://cdn.uviewui.com/uview/album/1.jpg" :lazy-load="true" height=100rpx width=100rpx
					shape="circle"></u-image>
				<h5>每周答题</h5>
				<text>不期而遇</text>
			</view>
			<view class="compare_son">
				<u-image src="https://cdn.uviewui.com/uview/album/1.jpg" :lazy-load="true" height=100rpx width=100rpx
					shape="circle"></u-image>
				<h5>专业答题</h5>
				<text>术业专攻</text>
			</view>

		</view>

		<view class="compare_header_2">
			<text>答题竞赛</text>
			<text>排行榜</text>
		</view>
		<view class="compare_2">
			<view class="compare_2_l" @click="goreally()">
				正式竞赛
			</view>
			<view class="compare_2_r">
				<view class="compare_2_son" @click="gobatter()">
					双人对战
				</view>
				<view class="compare_2_son">
					挑战答题
				</view>
			</view>

		</view>



	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			gobatter() {
				uni.navigateTo({
					url: '../../ceshi/ceshi/ceshi'
				})
			},
			goreally()
			{
				uni.navigateTo({
					url:'../../ceshi/reallyList/reallyList'
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	page {
		background-color: #F2F2F2;
		margin: 5rpx;
	}

	.compare_header {
		display: block;
		color: black;
		font-size: 20px;
		margin: 40rpx;


	}


	.compare {
		height: 280rpx;

		margin: 20rpx;
		display: flex;
		flex-direction: row;
		align-content: space-between;

		.compare_son {
			flex: 1;
			background-color: #FFFFFF;
			box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
			border-radius: 20rpx;
			margin: 10rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;

			text {
				color: #D0D0D0;
			}
		}
	}

	.compare_header_2 {
		display: flex;
			margin: 0 50rpx;
		align-items: center;
		justify-content: space-between;

	}

	.compare_2 {
		height: 320rpx;

		margin: 30rpx;
		display: flex;
		flex-direction: row;
		align-content: space-between;

		.compare_2_l {
			flex: 1;
			margin: 10rpx;
			background-color: pink;
		}

		.compare_2_r {
			flex: 1;
			margin: 10rpx;

			display: flex;
			flex-direction: column;

			.compare_2_son {
				flex: 1;
				background-color: pink;
				margin: 5rpx;
			}
		}
	}
</style>
